package cn.occgmat.util;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * 定义了状态码的类
 * @author shimmer
 */
@Getter
@AllArgsConstructor
public enum StatusCode {

    Success(0,"成功"),
    Fail(-1,"失败"),
    NotFound(10010,"不存在"),
    EXISTED(10011,"以存在"),
    Invalid_Params(10012,"请求参数不合法!");


    private Integer code;
    private String msg;
}
